package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP商城商品业务对象 app_goods
 *
 * @author heike
 * @date 2023-02-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppGoodsBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String goodsName;

    /**
     * 商品描述
     */
    private String goodsDetail;

    /**
     * 商品详情
     */
    private String goodsDescribe;

    /**
     * 商品库存
     */
    private String goodsInventory;

    /**
     * 商品价格
     */
    @NotNull(message = "商品价格不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal goodsPrice;

    /**
     * 商品分类ID
     */
    @NotNull(message = "商品分类不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long classId;

    /**
     * 商品类别(0=实体商城，1=积分商城)
     */
    private String buyType;

    /**
     * 商品是否需要发货(0=需要，1=不需要)
     */
    private String sendType;

    /**
     * 是否包邮(0=是,1=否)
     */
    private String goodsTransfer;

    /**
     * 邮费
     */
    private BigDecimal transferFee;

    /**
     * 排序
     */
//    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer sort;

    /**
     * 图片
     */
//    @NotBlank(message = "图片不能为空", groups = {AddGroup.class, EditGroup.class})
    private String images;

    /**
     * 状态(0=上架，1=下架)
     */
    private String status;

    /**
     * 卖出数量
     */
    private Integer sellNum;

    /**
     * 喜欢数量
     */
    private Integer likeNum;

    /**
     * 备注
     */
    private String remark;


}
